
<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
if(isset($error)){
    echo ('Invalid login');
}
?>
<div id="loginForm">
<h2>Host Login In</h2>

<?php
echo $form->create('Host', array('action'=>'login'));
?>
<?php
 echo $form->input('email_addr', array('label' => 'Email Address'));
echo $form->input('passwd', array('label' => 'Password')); ?>

<?php
echo $form->end('Login');
?>
</div>
<br />
<div id="loginForm">
    <p>Don't have a socialite account?</p>
    <br/>
<?php
echo $html->link('Register Now', array('action'=>'register'));
echo '<br>';
echo $html->link('Login as a user', array('controller' => 'users', 'action'=>'login'));
?>
</div>